//
//  HZDateHelper.h
//  HZDLHuiXianXia
//
//  Created by zhou Can on 15/10/6.
//  Copyright (c) 2015年 hzdlapple2. All rights reserved.
//

#define kHourAndMinuteFormat @"HH:mm"
#define kHourAndMinuteAndSecondFormat @"HH:mm:00"
#define kUTC @"yyyy-MM-dd HH:mm:ss"
#define kUT @"yyyy-MM-dd HH:mm"
#define kYearAndMothAndDay @"yyyy-MM-dd"
#define kYeaerAndMonthAndDayStyle2 @"yyyy/MM/dd"

#define KMothAndDay @"MM月-dd日"
#define KMothAndDayM @"MM月dd日"

#define kMonthAndDayAndHourAndMinitue @"MM月dd日 HH:mm"

#define K_HAN_YU @"yyyy年MM月dd日 HH:mm"

#define K_SORT_STYLE @"yyyy/MM/dd HH:mm"

#define kCustomYearMonthAndDay @"yyyy年MM月dd号"

#define KHour @"HH"
#define KMinute @"mm"

#define kNormalYearAndMonthAndDayFormat @"yyyy年MM月dd日"

#import <Foundation/Foundation.h>

@interface KNDateHelper : NSObject

@property (strong, nonatomic) NSDateFormatter *formatter;

+ (instancetype)shareInstance;

- (NSString *)stringFormatWithDate:(NSDate *)date formatString:(NSString *)format;

- (NSDate *)dateFormatWithTimeStringSince1970:(NSString *)timeString;

- (NSDate *)dateFormatWithMillionTimeStringSince1970:(NSString *)millionTimeString;

- (NSDate *)dateWithTimeFormatString:(NSString *)timeString;

- (NSDate *)dateWithTimeFormat:(NSString *)format timeString:(NSString *)timeString;

- (NSInteger)getHourWithDate:(NSDate *)date;

- (NSInteger)getDayWithDate:(NSDate *)date;

- (NSInteger)getMonthWithDate:(NSDate *)date;

- (NSInteger)getMinuteWithDate:(NSDate *)date;

+ (NSString *)stringWithInterval:(NSString *)Interval;

+ (NSString *)mmStringWithInterval:(NSString *)Interval;

+ (NSString *)utcStringWithInterval:(NSString *)Interval;

+ (NSString *)utStringWithInterval:(NSString *)Interval;

+ (NSString *)customStringWithInterval:(NSString *)interval;

+ (NSString *)monthDayHourMinitueStringWithInterval:(NSString *)interval;

+ (NSString *)yearAndMonthAndDayStyle2StringWithInterval:(NSString *)interval;

+ (NSString *)stringDateWithInterval:(NSString *)interval formatString:(NSString *)formatString;

+ (NSString *)stringDateWithMillionInterval:(NSString *)interval formatString:(NSString *)formatString;

+ (NSDate *)dateWithInterval:(NSString *)interval formatString:(NSString *)formatString;

+ (long)getShiQuCha;


@end
